package com.xingkeduo.business.order.remote.feign;

import com.xingkeduo.dto.ManagerTable;
import com.xingkeduo.dto.ServprodTable;
import com.xingkeduo.dto.ShopsDTO;
import com.xingkeduo.dto.param.HairstyleResponseDTO;
import com.xingkeduo.utils.ResponseUtils;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.*;

import java.util.List;

@FeignClient(value = "business-operation" ,   fallback = StoreFeignServiceImpl.class)
public interface StoreFeignService {



    @RequestMapping("/api/op/shops/getShopsDetales")
    ResponseUtils<ShopsDTO> doGet(@RequestParam(value = "id") Long id);


    //查询发型信息
    @RequestMapping("/api/op/hairstyle/{urlParam}")
    ResponseUtils<HairstyleResponseDTO> getHair(@PathVariable("urlParam") @RequestParam(value = "urlParam") String urlParam);

    @RequestMapping("/api/op/hairstyle/lists/{urlParam}")
    ResponseUtils<List<HairstyleResponseDTO>> hairstyle_list(@PathVariable("urlParam") @RequestParam(value = "urlParam") String urlParam);


    /**
     * 获取所有的服务类型
     * @return
     */
    @RequestMapping(value = "/api/op/servprod/lists/{urlParam}", method = RequestMethod.GET)
    ResponseUtils<List<ServprodTable>> doGetLists(@PathVariable("urlParam") @RequestParam(value = "urlParam") String urlParam);


    //获取服务类型
    @GetMapping(value = "/api/op/servprod/getServprodDetail")
    ResponseUtils<ServprodTable> getServprod(@RequestParam(value = "id") Long id);


    //获取用户详情
    @GetMapping(value = "/cms/op/manager/{urlParam}")
    ResponseUtils<ManagerTable> manager_id(@PathVariable("urlParam") @RequestParam(value = "urlParam") String urlParam);

}
